import httpx

res = httpx.post('https://httpbin.org/post', data={'key': 'value'})
r = httpx.get('https://httpbin.org/get')
print(r.text)